//
//  EPublicMacros.h
//  WXIM
//
//  Created by fusuwei on 14-5-27.
//  Copyright (c) 2014年 fusuwei. All rights reserved.
//


#ifndef EPublicMacros_h
#define EPublicMacros_h

/*********************************此APPID和APPsecret需要在网站上注册********************************/

#if 0
//金融工厂
#define  APPID           @"DEfef7163e17432225da5b9324421d9dd1"
#define  APPsecret       @"2c92b2fc2e679b885c981a3400e89532"

#else
//APP Demo 
#define  APPID           @"PE1f25fd25aef71ba284eb8f8b76a78bfa "
#define  APPsecret       @"2e375f6fe30e8d0542f1fe57e61396c4"
#endif

//在lxw本地机器上验证
//#define  APPID           @"APP_jason28047"
//#define  APPsecret       @"EA6F0C827B9406C7A68061BCF4E9F0B5"


//内容长度定义
#define kGroupDescribeMaxLen                 1000  //群描述信息最大长度
#define kMessageBodyMaxLen                   5*1024  //消息体内容最大长度

#define kGroupMemberMaxNum                   500  //群组成员最大数
#define kGroupNameMaxNum                     1000  //群组名称最大数

#define kFileSizeMaxLen                     10*1024*1024  //发送文件最大的大小不能超过10MByte



//登录
#define kXMPPLoginSuccessNotifaction           @"kXMPPLoginSuccessNotifaction"          //发送登录成功消息通知

//消息定义

#define kXMPPRecvChatMsgNotifaction           @"XMPPRecvChatMsgNotifaction"            //收到聊天消息


//关于联系人模块消息通知
#define kXMPPBuddyListChangeNotifaction       @"XMPPUserBuddyListChangeNotifaction"   //好友列表增加or减少、改变消息

#define kXMPPBuddyOnlineOfflineNotifaction    @"kXMPPBuddyOnlineOfflineNotifaction"   //好友上线、下线通知
#define kReceiveBuddyInviteMsg                @"kReceiveBuddyInviteMsg"               //收到新朋友邀请消息


//关于群组整理之后
#define kXMPPGroupDeleteNotifaction           @"kXMPPGroupDeleteNotifaction"        //删除群组结果通知
#define kXMPPGroupUpdateNotifaction           @"kXMPPGroupUpdateNotifaction"        //更新群组结果通知 （包括管理员权限改变）

#define kXMPPGroupInviteGroupMemberNotifaction           @"kXMPPGroupInviteGroupMemberNotifaction"        //邀请群组成员结果通知
#define kXMPPGroupDeleteGroupMemberNotifaction           @"kXMPPGroupDeleteGroupMemberNotifaction"        //删除群组成员结果通知

#define kXMPPGroupLeaveGroupNotifaction           @"kXMPPGroupLeaveGroupNotifaction"        //踢人离开群组、被别人踢出、退出 群组后的通知
#define kXMPPGroupQuitGroupNotifaction            @"kXMPPGroupQuitGroupNotifaction"         //当前用户 申请退出某群组后的通知


#define kXMPPGroupAcceptJoinNotifaction            @"kXMPPGroupAcceptJoinNotifaction"         //当前用户 接收成员加入某群组
#define kXMPPGroupRejectJoinNotifaction            @"kXMPPGroupRejectJoinNotifaction"         //当前用户 拒绝成员加入某群组


//网络重连相关
#define kXMPPNetwrokErrorReconning            @"kXMPPNetwrokErrorReconning"              //断网重连消息
#define kXMPPNetwrokErrorReconnSucc           @"kXMPPNetwrokErrorReconnSucc"              //断网重连成功


//上传下载文件、图片、视频等进度动态更新
#define kProgressUpdate                       @"kProgressUpdate"


#endif


